<template>
    <a-modal :visible="isShowPic" :centered="true" width="650px"  @cancel="closeModal" :footer="null" >
      <img alt="" style="width:100%;" :src="previewImage" />
    </a-modal>
</template>

<script>
export default {
  name:'PreviewPic',
  props:{
    isShowPic:{
      type:Boolean,
      default:false
    },
    previewImage:{
      type:String,
      default:''
    }
  },
  data() {
    return {
    }
  },
  computed: {},
  methods:{
    // 关闭弹框
    closeModal(){
      this.$emit('closePreviewpic', 'previewpic');
    },
  }
}
</script>
